package messages;


/**
 * InvitationTimedOutMessage
 *
 * This is the message the server sends when an invitation timed out.
 */
public class InvitationTimedOutMessage extends Message {

	public InvitationTimedOutMessage(int invitationId) {
		super();
		
		this.invitationId = invitationId;
	}

	
	/**
	 * Returns an invitation identifier for the invitation that timed out.
	 * 
	 * @return An invitation identifier for the invitation that timed out.
	 */
	public int getInvitationId() {
		return this.invitationId;
	}
	
	
	@Override
	public String toString() {
		return super.toString() + " InvitationTimedOut (" + this.invitationId + ")";
	}
	
	
	private int invitationId;	// Identifies the invitation that timed out.

	private static final long serialVersionUID = 1L;	
}
